package com.ruoyi.order.api.feign;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.edu.api.domain.EduCourse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 订单微服务远程调用接口
 *
 * @author isahino
 * @version 1.0
 * @date 2023/9/20 15:07
 */
@FeignClient("ruoyi-order")
public interface IOrderClient {

    /**
     * 远程调用，edu模块获取课程详情时检查会员是否已经购入该课程
     *
     * @param memberId 会员id
     * @param courseId 课程id
     * @return 会员是否已经购入该课程
     */
    @RequestMapping("/order/order/queryBuy/{memberId}/{courseId}")
    AjaxResult queryBuy(@PathVariable("memberId") String memberId, @PathVariable("courseId") String courseId);
}
